<template>
	<view class="order">
		<view class="nav">
			<block v-for="(item, index) in nav_status_list" :key="index">
				<view v-if="nav_status_index == index" class="cr-main" :data-index="index" @tap="nav_event">
					{{item.name}}
				</view>
				<view v-else class="item fl tc" :data-index="index" @tap="nav_event">{{item.name}}</view>
			</block>
		</view>
		<!-- 订单内容 -->
		<scroll-view :scroll-y="true" style="height: 100vh;" class="scroll-box scroll-box-ece-nav"
			@scrolltolower="scroll_lower" lower-threshold="60">
			<view class="order-item" v-if="state[0]">
				<view class="item" v-for="(item,index) in data_list" :key="index">
					<view class="item_time">下单时间:{{item.add_time_time}}</view>
					<!-- 订单号 -->
					<view class="item_top">
						<view class="item_xh">
							<view class="ddh">订单号：{{item.order_no}}</view>
						</view>
						<view class="item_dpj">{{item.system_type}}</view>
					</view>
					<!-- 订单进度 -->
					<view class="item_schedule">
						<view class="schedule">
							<image
								src="https://t1.chowtaiking.com.cn/img/ruoyi/2025/03/10/d96e1db1e4ee441fa1a1f399f456ef37.png"
								mode="widthFix"></image>
							<view class="">{{item.status_name}}</view>
						</view>
					</view>
					<!-- 订单内容详情 -->
					<view class="item_detail" v-for="info in item.items" @click="OnDetail(item.id,isManager)">
						<view class="item_detail_img">
							<image :src="info.images" mode="widthFix"></image>
						</view>
						<view class="item_detail_info">
							<view class="info_title">{{info.title == '' ? "" : info.title}}</view>
							<view class="info_weight">
								<view class="" v-if="info.spec_barcode !=''">款号：{{info.spec_barcode}}</view>
							</view>
							<view class="info_spec_list">
								<view class="info_spec_item" v-for="infoSpec in info.spec"
									v-if="infoSpec.type !== '规格' && infoSpec.value !== '默认'">
									<view class="info_spec_item_type">{{infoSpec.type}}:</view>
									<view class="">{{infoSpec.value}}</view>
								</view>
							</view>
						</view>
					</view>
					<!-- 合计 -->
					<view class="item_total">
						<view class="item_total_name">
							<view class="">共{{item.buy_number_count}}件</view>
							<view class="red totall">
								{{item.total_price !='0.00' ? '合计：￥' + (item.total_price*1).toFixed(2) + '元': ''}}
							</view>
						</view>
					</view>
					<view class="item_btn_list">
						<!-- <view class="item_button qxdd"
							v-if="item.order_model_name == '自提点' && item.status_name!='待支付' && item.status_name!='已取消' && item.status_name!='已完成' && item.status_name !== '待审核'"
							@tap="verify_event" :data-value="item.verifyCode" :data-orderId="item.order_no"
							hover-class="none">
							<view class="verify_code">自提码</view>
						</view> -->
						<view class="item_button"
							v-if="item.status_name!='已取消' &&  item.status_name != '备货中' && item.status_name !='已接单' && item.status_name != '已完成'">
							<view class="item_btn qxdd">
								<button type="default" size="mini" @tap="cancel_event" :data-value="item.id"
									:data-index="index" hover-class="none">取消</button>
							</view>
						</view>
						<view class="item_button" v-if="item.status_name=='已取消'">
							<view class="item_btn scdd">
								<button type="default" size="mini" @tap="delete_event" :data-value="item.id"
									:data-index="index" hover-class="none">删除</button>
							</view>
						</view>
						<!-- <view class="item_button" v-if="item.status_name == '待支付'">
							<view class="item_btn scdd">
								<button type="default" size="mini" @tap="payment_envent" :data-value="item.id"
									:data-index="index" hover-class="none">去支付</button>
							</view>
						</view> -->
						<!-- <view class="item_button" v-if="item.status_name == '待审核' && roleName == '业务经理'">
							<view class="item_btn scdd">
								<button type="default" size="mini" @click="audit_envent" :data-value="item.id"
									:data-index="index" hover-class="none">去审核</button>
							</view>
						</view> -->
					</view>
				</view>
			</view>
		</scroll-view>
		<!-- 自提吗 -->
		<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0">
			<view class="popup_sqcode">
				<view class="popup_info">
					<view class="popup_tltie">取货凭证</view>
					<view class="popup_phone">取货电话：13682794986</view>
					<view class="popup_address">取货地址：广东省深圳市龙岗区</view>
					<view class="popup_time">营业时间： <text>09:00-18:00</text> </view>
					<view class="popup_status">营业状态： <text>正常,可自取</text> </view>
				</view>
				<view class="popup_code">
					<image :src="imageCode" mode="widthFix"></image>
					<view class="popup_code_num">订单号：{{orderid}}</view>
					<view class="popup_code_tip">为了货品安全,切勿转发或者告知他人</view>
				</view>
			</view>
		</uni-popup>
		<!-- 支付凭证 -->
		<uni-popup ref="popupPay" type="center" border-radius="10px 10px 0 0">
			<view class="popupPay">
				<view class="popupPay_title">支付凭证 <text>(最多1张)</text> </view>
				<view class="popupPay_tip">注意:上传完凭证在进行编译,所以需要稍等片刻哦!</view>
				<view class="">
					<uni-file-picker v-if="payCertificateImg.length < 1" :count="1" :limit="1"
						@select="onFileChange"></uni-file-picker>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	const app = getApp();

	export default {
		data() {
			return {
				state: [true, false, false, false, false],
				nav_status_list: [
					{
						name: "全部",
						value: "-1"
					},
					{
						name: "待确认",
						value: "8"
					},
					{
						name: "已接单",
						value: "9"
					},{
						name: "已完成",
						value: "13"
					},
					// {
					// 	name: "待付款",
					// 	value: "1"
					// },
					// {
					// 	name: "待审核",
					// 	value: "7"
					// },
					// {
					// 	name: "待发货",
					// 	value: "2"
					// },
					// {
					// 	name: "待收货",
					// 	value: "3"
					// },
					// {
					// 	name: "已完成",
					// 	value: "4"
					// }
				],
				nav_status_index: 0,
				data_page: 1,
				data_page_total: 0,
				data_total: 0,
				params: null,
				data_list: [],
				load_status: 0,
				input_keyword_value: '',
				data_bottom_line_status: false,
				gl: null,
				entryTime: 0,
				verifyCode: null,
				imageCode: '',
				orderid: '',
				payCertificateImg: [],
				payCertificateId: null,
				orderIdpay: '',
				orderIndexpay: null,
				roleName:null,
				isManager:null
			}
		},
		// 分享给朋友
		onShareAppMessage(res) {
			return {
				title: app.globalData.data.tenantName,
				path: "pages/user-order/user-order?numberId=" + app.globalData.data.numberId,
				mpId: app.globalData.data.appid
			}
		},
		methods: {
			init(e) {
				var user = app.globalData.get_user_info(this, "init", "");
				if (user != false) {
					// 用户未绑定用户则转到登录页面
					if (app.globalData.user_is_need_login(user)) {
						uni.navigateTo({
							url: "/pages/login/login?event_callback=init"
						})
					} else {
						this.get_data_list(1);
						this.roleName = user.roleName;
					}
				}
			},
			OnEntryTime() {
				var radarlog_data = {
					pageUrl: "pages/user-order/user-order",
					name: "我的订单页",
					remark: "我的订单页停留时间",
					entryTime: this.entryTime,
				}
				uni.request({
					url: app.globalData.get_request_url("radarlog/add"),
					data: radarlog_data,
					method: "POST",
					success: (res) => {
						// console.log(res, "我的订单页停留时间");
					}
				})
			},
			OnDetail(id,isManager) {
				uni.navigateTo({
					url: "/pages/user_order_detail/user_order_detail?id=" + id + '&isManager=' + this.params.isManager
				})
			},
			// 工费总额
			calculateTotalCost(info) {
				// 批发工费
				const wage = parseFloat(info.wholesaleWage);
				// 金重
				const weight = parseFloat(info.goldWeight);
				// 批发附加费
				const surcharge = parseFloat(info.wholesaleSurcharge);
				// 批发其他工费
				const otherExpenses = parseFloat(info.wholesaleOtherExpenses);

				if (!isNaN(wage) && !isNaN(weight) && !isNaN(surcharge) && !isNaN(otherExpenses)) {
					const totalCost = (wage * weight) + (surcharge * weight) + otherExpenses;
					return totalCost.toFixed(2);
				} else {
					// 如果有任何一个值不是数字，可以决定如何处理，例如返回0或者默认值
					return '0.00';
				}
			},
			// 导航事件
			nav_event(e) {
				this.nav_status_index = e.currentTarget.dataset.index || 0
				this.data_page = 1
				this.order_select_ids = []

				// 重新拉取数据
				this.get_data_list(1);
			},
			// 输入框事件
			input_event(e) {
				this.setData({
					input_keyword_value: e.detail.value
				});
			},
			// 滚动加载
			scroll_lower(e) {
				this.get_data_list();
			},
			get_data_list(is_mandatory) {
				// 分页是否还有数据
				if ((is_mandatory || 0) == 0) {
					if (this.data_bottom_line_status == true) {
						uni.stopPullDownRefresh();
						return false;
					}
				}
				// 加载loding
				uni.showLoading({
					title: '加载中...'
				});
				this.data_list_loding_status = 1;
				// 参数
				var order_status = (this.nav_status_list[this.nav_status_index] || null) == null ? -1 : this
					.nav_status_list[this.nav_status_index]['value']
				let url = app.globalData.get_request_url("order/index");
				uni.request({
					url: url,
					method: 'POST',
					data: {
						page: this.data_page,
						keywords: this.input_keyword_value || "",
						status: order_status,
						is_more: 1
					},
					dataType: 'json',
					header: {
						'Authorization': 'Bearer ' + app.globalData.data.admin_token
					},
					success: res => {
						uni.hideLoading();
						uni.stopPullDownRefresh();
						if (res.data.code == 200) {
							if (res.data.data.data.length > 0) {
								if (this.data_page <= 1) {
									var temp_data_list = res.data.data.data;
								} else {
									var temp_data_list = this.data_list || [];
									var temp_data = res.data.data.data;
									for (var i in temp_data) {
										temp_data_list.push(temp_data[i]);
									}
								}
								var temp_load_status = this.load_status;
								this.data_list = temp_data_list;
								this.data_total = res.data.data.total;
								this.data_page_total = res.data.data.page_total;
								this.data_list_loding_status = 3;
								this.data_page = this.data_page + 1;
								this.load_status = 1;
								this.payment_list = res.data.data.payment_list || [];
								// 下订单支付处理
								// if (temp_load_status == 0) {
								// 	var ck = app.globalData.data.cache_page_pay_key;
								// 	var pay_data = uni.getStorageSync(ck) || null;
								// 	if (pay_data != null) {
								// 		uni.removeStorageSync(ck);
								// 		this.setData({
								// 			payment_id: parseInt(pay_data.payment_id || 0)
								// 		});
								// 		this.pay_handle(pay_data.order_ids);
								// 	}
								// }
								// 是否还有数据
								if (this.data_page > 1 && this.data_page > this.data_page_total) {
									this.data_bottom_line_status = true
								}
							} else {
								this.data_list_loding_status = 0;
								this.load_status = 1;
								this.data_list = [];
								this.data_bottom_line_status = false;
							}
						} else {
							this.data_list_loding_status = 0;
							this.load_status = 1;
						}
					},
					fail: (err) => {
						uni.hideLoading();
						uni.stopPullDownRefresh();
						this.data_list_loding_status = 2;
						this.load_status = 1;
						uni.showToast({
							title: '服务器请求出错'
						})
					}
				})
			},
			open() {
				this.$refs.popup.open('center');
			},
			// 核销订单
			verify_event(e) {
				this.open();
				// 参数
				var code = e.currentTarget.dataset.value || '';
				this.orderid = e.currentTarget.dataset.orderid || '';
				// 加载loding
				uni.showLoading({
					title: '处理中...'
				});
				let url = app.globalData.get_request_url("qrcode/" + code);
				uni.request({
					url: url,
					method: 'POST',
					dataType: 'json',
					success: res => {
						uni.hideLoading();
						if (res.data.code == 200) {
							this.imageCode = res.data.msg;
						} else {
							uni.showToast({
								title: res.data.msg
							})
						}
					},
					fail: () => {
						uni.hideLoading();
						uni.showToast({
							title: '服务器请求出错'
						})
					}
				});
			},

			// 取消
			cancel_event(e) {
				uni.showModal({
					title: '温馨提示',
					content: '取消后不可恢复，确定继续吗?',
					confirmText: '确认',
					cancelText: '不了',
					success: result => {
						if (result.confirm) {
							// 参数
							var id = e.currentTarget.dataset.value;
							var index = e.currentTarget.dataset.index;

							// 加载loding
							uni.showLoading({
								title: '处理中...'
							});
							let url = app.globalData.get_request_url("order/cancel");
							uni.request({
								url: url,
								method: 'POST',
								data: {
									id: id
								},
								dataType: 'json',
								success: res => {
									uni.hideLoading();
									if (res.data.code == 200) {
										var temp_data_list = this.data_list;
										temp_data_list[index]['status'] = 5;
										temp_data_list[index]['status_name'] = '已取消';
										temp_data_list[index]['operate_data']['is_cancel'] = 0;
										temp_data_list[index]['operate_data']['is_pay'] = 0;
										temp_data_list[index]['operate_data']['is_delete'] = 1;
										temp_data_list[index]['is_can_launch_aftersale'] = 0;
										this.data_list = temp_data_list;
										uni.showToast({
											title: res.data.msg
										})
									} else {
										uni.showToast({
											title: res.data.msg
										})
									}
								},
								fail: () => {
									uni.hideLoading();
									uni.showToast({
										title: '服务器请求出错'
									})
								}
							});
						}
					}
				});
			},
			// 删除
			delete_event(e) {
				uni.showModal({
					title: '温馨提示',
					content: '删除后不可恢复，确定继续吗?',
					confirmText: '确认',
					cancelText: '不了',
					success: result => {
						if (result.confirm) {
							// 参数
							var id = e.currentTarget.dataset.value;
							var index = e.currentTarget.dataset.index;

							// 加载loding
							uni.showLoading({
								title: '处理中...'
							});
							let url = app.globalData.get_request_url("order/delete");
							uni.request({
								url: url,
								method: 'POST',
								data: {
									id: id
								},
								dataType: 'json',
								success: res => {
									uni.hideLoading();
									if (res.data.code == 200) {
										var temp_data_list = this.data_list;
										temp_data_list.splice(index, 1);
										var len = temp_data_list.length;
										this.data_list = temp_data_list;
										this.data_list_loding_status = (len == 0) ? 0 : 3;
										this.data_bottom_line_status = (len == 0) ? false : this
											.data_bottom_line_status
										uni.showToast({
											title: res.data.msg
										})
									} else {
										uni.showToast({
											title: res.data.msg
										})
									}
								},
								fail: () => {
									uni.hideLoading();
									uni.showToast({
										title: "服务器请求出错"
									})
								}
							});
						}
					}
				});
			},
			// 支付订单
			payment_envent(e) {
				this.$refs.popupPay.open('center');
				var id = e.currentTarget.dataset.value;
				var index = e.currentTarget.dataset.index;
				this.orderIdpay = id;
				this.orderIndexpay = index;
			},
			// 上传支付凭证
			onFileChange(e) {
				uni.showLoading({
					title: '正在上传图片，请稍候...'
				});
				const tempFilePaths = e.tempFilePaths;
				for (var i = 0; i < tempFilePaths.length; i++) {
					this.uploadFile(tempFilePaths[i], 0)
				}
				uni.hideLoading();
			},
			// 上传处理
			uploadFile(image, field) {
				uni.showLoading({
					title: '检验中...',
					mask: true,
				});
				var self = this;
				let url = app.globalData.get_request_url("useravatarupload");
				uni.uploadFile({
					url: url,
					filePath: image,
					name: 'file',
					formData: {},
					success: function(res) {
						uni.hideLoading();
						if (res.statusCode == 200) {
							var data = typeof res.data == 'object' ? res.data : JSON.parse(res.data);
							if (data.code == 200) {
								var oss_id = data.data.oss_id;
								if (self.payCertificateId) {
									self.payCertificateId += ',' + oss_id;
								} else {
									self.payCertificateId = oss_id;
								}

								uni.request({
									url: app.globalData.get_request_url("order/pay"),
									method: "POST",
									data: {
										ids: self.orderIdpay,
										payCertificateId: self.payCertificateId
									},
									dataType: 'json',
									success: (res) => {
										uni.hideLoading();
										if (res.data.code == 200) {
											var data = res.data.data;
											var index = self.orderIndexpay;
											var temp_data_list = self.data_list;
											temp_data_list[index]['status'] = 7;
											temp_data_list[index]['status_name'] = '待审核';
											temp_data_list[index]['operate_data']['is_cancel'] = 1;
											temp_data_list[index]['operate_data']['is_pay'] = 1;
											temp_data_list[index]['operate_data']['is_delete'] = 1;
											temp_data_list[index]['is_collect'] = 1;
											self.data_list = temp_data_list;
											uni.showToast({
												title: "支付成功"
											})
											self.$refs.popupPay.close();
										} else{
											uni.showToast({
												title: "支付失败",
												icon:'error'
											})
										}
									}
								})
							} else {
								uni.showToast({
									title: data.msg
								})
							}
						}
					}
				});
			},
			// 审核订单
			audit_envent(e){
				uni.showModal({
					title: '温馨提示',
					content: '确定要审核订单吗?',
					confirmText: '确认',
					cancelText: '不了',
					success: result => {
						if (result.confirm) {
							// 参数
							var id = e.currentTarget.dataset.value;
							var index = e.currentTarget.dataset.index;
							// 加载loding
							uni.showLoading({
								title: '处理中...'
							});
							let url = app.globalData.data.request_admin_url + 'order/storeOrder/audit/' + id
							
							uni.request({
								url: url,
								method: 'GET',
								dataType: 'json',
								header: {
									'Authorization': 'Bearer ' + app.globalData.data.admin_token
								},
								success: res => {
									uni.hideLoading();
									if (res.data.code == 200) {
										var data = res.data.data;
										var temp_data_list = this.data_list;
										temp_data_list[index]['status'] = 2;
										temp_data_list[index]['status_name'] = '待发货';
										temp_data_list[index]['operate_data']['is_cancel'] = 1;
										temp_data_list[index]['operate_data']['is_pay'] = 1;
										temp_data_list[index]['operate_data']['is_delete'] = 1;
										temp_data_list[index]['is_collect'] = 1;
										 this.data_list = temp_data_list;
										uni.showToast({
											title: "审核成功"
										})
									} else {
										uni.showToast({
											title: res.data.msg
										})
									}
								},
								fail: () => {
									uni.hideLoading();
									uni.showToast({
										title: "服务器请求出错"
									})
								}
							});
						}
					}
				});
			}
		},
		onLoad(params) {
			if (typeof(params) != 'undefined') {
				var numberId = params.numberId || '';
				if (numberId != '') {
					uni.clearStorageSync();
					app.globalData.data.numberId = numberId;
				}
			}
			var nav_status_index = 0;
			if ((params.status || null) != null) {
				for (var i in this.nav_status_list) {
					if (this.nav_status_list[i]['value'] == params.status) {
						nav_status_index = i;
						break;
					}
				}
			}
			if ((params.gl || null) != null) {
				this.gl = params.gl;
			}
			this.params = params;
			this.nav_status_index = nav_status_index;
		},
		onShow() {
			this.init();
			// 记录用户进来时间
			this.entryTime = Date.now();
		},
		onUnload() {
			this.OnEntryTime();
			uni.switchTab({
				url: "/pages/user/user"
			})
		},
		// 监听下拉事件
		onPullDownRefresh() {
			this.data_page = 1
			this.get_data_list(1);
			setTimeout(function() {
				uni.stopPullDownRefresh();
			}, 1000);
		}
	}
</script>

<style lang="less">
	.active {
		color: red;
		border-bottom: 1px solid red;
	}

	.cr-main {
		color: red !important;
	}

	.red {
		color: red;
	}

	.sz {
		font-size: 28px;
		color: aqua;
	}

	// 自提码
	.popup_sqcode {
		width: 600rpx;
		background-color: white;
		display: flex;
		flex-direction: column;
		border-radius: 10rpx;
		padding: 20rpx;

		.popup_info {
			border-bottom: 2px #f2f2f2 solid;

			.popup_tltie {
				font-size: 14px;
				font-weight: bold;
				padding-bottom: 10rpx;
			}

			.popup_phone {
				font-size: 12px;
				color: gray;
				padding-top: 10rpx;
				padding-bottom: 10rpx;
			}

			.popup_address {
				font-size: 12px;
				color: gray;
				padding-top: 10rpx;
				padding-bottom: 10rpx;
			}

			.popup_time {
				font-size: 12px;
				color: gray;
				padding-top: 10rpx;
				padding-bottom: 10rpx;

				text {
					color: black;
				}
			}

			.popup_status {
				font-size: 12px;
				color: gray;
				padding-top: 10rpx;
				padding-bottom: 10rpx;

				text {
					color: black;
				}
			}
		}

		.popup_code {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			padding: 20rpx;

			image {
				width: 300rpx;
				height: 300rpx;
			}

			.popup_code_num {
				background-color: #f2f2f2;
				padding: 10rpx;
				color: black;
				font-size: 13px;
			}

			.popup_code_tip {
				color: red;
				font-size: 10px;
				padding-top: 10rpx;
			}
		}
	}

	// 支付凭证
	.popupPay {
		width: 600rpx;
		background-color: white;
		display: flex;
		flex-direction: column;
		border-radius: 10rpx;
		padding: 20rpx;

		.popupPay_title {
			font-size: 18px;
			color: black;
			font-weight: bold;
			padding-bottom: 10rpx;
			padding-left: 10rpx;

			text {
				font-weight: 0;
				font-size: 12px;
				color: #f96e11;
			}
		}
		.popupPay_tip{
			font-size: 12px;
			color: #f96e11;
			padding-bottom: 20rpx;
		}
	}

	.order {

		// 头部导航
		.nav {
			height: 40px;
			background-color: white;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding-left: 15px;
			padding-right: 15px;
			border-bottom: 1px solid #ececec;

			.nav_name {}
		}

		// 订单内容
		.order-item {
			image {
				width: 100%;
			}

			.item {
				border-top: 10px solid #ececec;

				// 下单时间
				.item_time {
					display: flex;
					justify-content: flex-end;
					font-size: 12px;
					color: gray;
					padding-top: 20rpx;
					padding-right: 10rpx;
				}

				// 订单号
				.item_top {
					padding-top: 10px;
					display: flex;
					align-items: center;
					justify-content: space-between;
					padding-left: 10px;
					padding-right: 10px;
					font-size: 13px;
					color: black;

					.item_xh {
						display: flex;
						align-items: center;

						.xh {
							width: 40px;
							height: 20px;
							background-color: red;
							color: white;
							border-radius: 20px;
							font-size: 10px;
							line-height: 20px;
							text-align: center;
						}

						.ddh {
							font-weight: bold;
							padding-left: 30rpx;
						}
					}

					.item_dpj {
						font-family: "宋体";
						color: red;
						font-weight: bold;
					}
				}

				// 订单进度
				.item_schedule {
					width: 85%;
					height: 30px;
					line-height: 30px;
					background-color: #ececec;
					margin: 10px auto;
					display: flex;
					align-items: center;
					justify-content: space-between;
					padding-left: 10px;
					border-radius: 5px;
					font-size: 12px;

					.schedule {
						display: flex;
						align-items: center;

						image {
							width: 20px;
							margin-right: 5px;
						}

						.ckjd {
							margin-right: 5px;
						}
					}
				}

				// 订单内容详情
				.item_detail {
					display: flex;
					margin-left: 10px;
					border-bottom: 1px solid #ececec;
					padding-bottom: 10px;

					.item_detail_img {
						image {
							width: 100px;
							margin-right: 10px;
						}
					}

					.item_detail_info {
						font-size: 10px;

						.info_title {
							font-size: 15px;
							font-weight: bold;
							color: black;
							width: 250px;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}

						.info_weight {
							display: flex;
							align-items: center;
							padding-top: 5px;

							.jz {
								margin-right: 20px;
							}
						}

						.info_spec_list {
							display: flex;
							align-items: center;
							padding-top: 10rpx;

							.info_spec_item {
								display: flex;
								align-items: center;
								padding-right: 20rpx;
								font-size: 13px;

								.info_spec_item_type {
									padding-right: 5rpx;
								}

							}
						}
					}
				}

				// 合计
				.item_total {
					margin-top: 10px;
					display: flex;
					align-items: center;
					justify-content: space-between;
					padding-left: 15px;
					padding-right: 15px;
					font-size: 12px;

					.item_total_name {
						display: flex;
						align-items: center;

						.totall {
							margin-left: 15px;
						}
					}

					.item_total_all {
						display: flex;
						align-items: center;

						image {
							width: 15px;
							margin-left: 5px;
						}
					}

				}

				.item_btn_list {
					display: flex;
					align-items: center;
					justify-content: space-between;
					padding: 20rpx;

					.item_button {
						display: flex;
						align-items: center;
						justify-content: space-between;
						padding-left: 20rpx;
						padding-right: 20rpx;

						.item_btn {
							width: 200rpx;
							height: 60rpx;
							line-height: 60rpx;
							text-align: center;
							font-size: 12px;
							border: none;

							button {
								width: 200rpx !important;
								height: 60rpx !important;
								line-height: 60rpx;
								text-align: center;
								background-color: red;
								color: white;
							}
						}

						.qxdd {
							button {
								background-color: red;
								color: white;
							}
						}

						.verify_code {
							width: 150rpx;
							height: 50rpx;
							border: 1px solid red;
							font-size: 13px;
							border-radius: 40rpx;
							line-height: 50rpx;
							text-align: center;
							color: red;
						}

						.scdd {
							button {
								background-color: red;
								color: white;
							}
						}
					}

				}


				// 查看按钮
				// .item_button {
				// 	margin-top: 15px;
				// 	display: flex;
				// 	align-items: center;
				// 	justify-content: space-between;
				// 	padding-right: 15px;

				// 	.see_button {
				// 		display: flex;

				// 		button {
				// 			width: 80px;
				// 			height: 30px;
				// 			line-height: 30px;
				// 			text-align: center;
				// 			background-color: #fd0100;
				// 			border-radius: 20px;
				// 			margin-left: 10px;
				// 			font-size: 10px;
				// 			color: white;
				// 		}
				// 	}
				// }
			}
		}
	}
</style>